package org.javaboy.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Lyh
 * @date 2024/1/29 0:39
 * @desciption: 1
 */
public class ConstuctorInjectDemo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans_constructor_inject.xml");
        User user = ctx.getBean(User.class);
        System.out.println("user = " + user);
    }
}
